//
//  LinkIPAddressView.swift
//  Example
//
//  Created by xx on 2025/3/17.
//

import UIKit
import FastSwiftSDK

class LinkIPAddressView: FastView {

    private lazy var txt_url : FastTextField = {
        let txt =  FastTextField.init(placeholder: "请输入URL")
       
        return  txt
    } ()
    
    private let btn_link = PublicView.button(title: "连接", style: .backgroundColor) {
        
    }
    override func setupUI() {

        self.addSubview(txt_url)
        self.addSubview(btn_link)
    }
    
    override func layoutSubviews() {
        btn_link.snp.makeConstraints { make in
            make.right.equalToSuperview().offset(-5)
            make.centerY.equalToSuperview()
            make.size.equalTo(btnSize)
        }
        txt_url.snp.makeConstraints { make in
            make.top.left.bottom.equalToSuperview()
            make.right.equalTo(btn_link.snp.left).offset(-10)
        }
    }

}
